package com.heima.wemedia.controller.v1;

import com.heima.model.wemedia.pojos.WmUser;
import com.heima.wemedia.util.WmThreadLocal;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {

    @GetMapping("test")
    public WmUser test(){
        return WmThreadLocal.getUser();
    }
}
